-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add enketo-preview url routed to PreviewXFormListViewSet #1953
Conversation
a22ce7b
to
1dcabba
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just concerned we do not have test to perhaps check this will work as expected Perhaps in onadata/apps/api/tests/viewsets/test_xform_list_viewset.py
as was the case when we introduced the /enketo path.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could we also add some documentation in the docs for this new endpoint as well perhaps on the enketo endpoint. Check with @DavisRayM on the full docs for both endpoints.
5d8aaf3
to
b742e8e
Compare
b742e8e
to
3b7250c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it correct to assume that PreviewXFormListViewSet
has already been implemented?
docs/formlist.rst
Outdated
^^^^^^^ | ||
:: | ||
|
||
curl -X GET https://stage-api.ona.io/<user_name>/<form_pk>/formList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use api.ona.io
on our example urls?
docs/formlist.rst
Outdated
|
||
:: | ||
|
||
curl -X GET https://stage-api.ona.io/enketo/<form_pk>/formList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above
docs/formlist.rst
Outdated
|
||
:: | ||
|
||
curl -X GET https://stage-api.ona.io/enketo-preview/<form_pk>/formList |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same comment as above?
@ivermac yes! https://github.com/onaio/onadata/blob/master/onadata/apps/api/viewsets/xform_list_viewset.py#L167 |
3b7250c
to
ecf26ab
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you ensure that all checks are passing?
Changes / Features implemented
Add a new URL that is routed to
PreviewXFormListViewSet
Steps taken to verify this change does what is intended
This has been tested on the staging environment and works as expected
Closes #1952